{wz}
<form method="POST" action="{"SaleOrder/{$smarty.const.ACTION_NAME}"|U}" id="search_form">
__SEARCH_START__
		<dl>
		   		<dt>
					<label >{$lang.sale_no}：</label>
					<input type="text" name="sale_order[like][sale_order_no]" url="{'/AutoComplete/saleOrderNo'|U}" jqac>
            	</dt>
            	<dt>
					<label>{$lang.client_name}：</label>
					<input type='hidden' name="sale_order[query][client_id]">
					<input type='text' url="{'/AutoComplete/client'|U}" jqac>
            	</dt>    
				<dt>
					<label>{$lang.product_no}：</label>
					<input type='hidden' name="sale_order_detail[query][product_id]">
             		<input type='text' url="{'/AutoComplete/product'|U}" jqac>
            	</dt>            			  
            	<dt>
					<label>{$lang.sale_date_from}：</label>
						<input type="text" name="sale_order[date][from_order_date]" value="{$smarty.post.date.from_order_date}" class="Wdate spc_input_data" onClick="WdatePicker()"/>
							<label>{$lang.sale_date_to}</label>
						<input type="text" name="sale_order[date][to_order_date]" value="{$smarty.post.date.to_order_date}" class="Wdate spc_input_data" onClick="WdatePicker()"/>
            	</dt>  
            	{if C('sale.relation_sale_follow_up')==1}
            	<dt>
					<label>{$lang.sale_order_state}：</label>
					{if 'delivery.relation_predelivery'|C==1}
            		{select data=C('SALE_ORDER_STATE') name='sale_order[query][sale_order_state]' id='sale_order_state' value="`$smarty.post.query.sale_order_state`" combobox="1"}
            		{else}
            		{select data=C('SALE_ORDER_STATE2') name='sale_order[query][sale_order_state]' id='sale_order_state' value="`$smarty.post.query.sale_order_state`"}
            		{/if}
            	</dt>   
            	{/if}         
		</dl>	
		<input type="hidden" name="date_key" value="2">
__SEARCH_END__
</form>
{if C('sale.relation_sale_follow_up')==1}
{note tabs="saleOrder" content="<ul><li>{$lang.comments}：</li><li class='bzyellow'></li><li>{$lang.mf_tip}</li></ul>"}
{else} 
{note tabs="saleOrder" content="<ul><li></li><li></li></ul>"}
{/if}
<div id="print" class="width98">
{include file="SaleOrder/list.tpl"}
</div> 